package com.boboPlanet.user.service;

import com.boboPlanet.user.entity.dto.MenuDTO;
import com.boboPlanet.user.entity.po.RolePO;
import com.boboPlanet.user.entity.vo.CurrentUserInfoVO;
import com.boboPlanet.user.entity.vo.MenuVO;
import com.boboPlanet.user.entity.vo.RoleMenuDTO;
import com.boboPlanet.user.entity.vo.UserRoleVO;

import java.util.List;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/2/21
 **/
public interface MenuService {

    List<MenuVO> getNotLoginMenus();

    List<MenuVO> getLoginMenus();

    Boolean addMenu(MenuDTO dto);

    List<MenuVO> findParentMenus();

    List<RolePO> getRoleList(String role,boolean isAll );

    Boolean addRole(String role);

    Boolean delRole(Long roleId);

    Boolean showRole(Long roleId);

    List<CurrentUserInfoVO> getSysUserInfo(String content);

    List<UserRoleVO> getRolesByUserId(Long userId);

    Boolean setRoleForUser(Long userId, String[] roleIds);

    RoleMenuDTO getMenuInfoByRoleId(Long roleId);

    List<MenuVO> getAllMenus();

    Boolean distributeMenuForRole(Long roleId, List<Long> menuIds);
}
